/**
 * 安全警报 详情页
 *
 * 作者 zhangwei
 * 日期 2024-08-22 09:19:50
 */
layui.use(['jquery','laydate','febs', 'form', 'validate','upload','fileUpload','tinymce'], function () {
    var $ = layui.$,
        febs = layui.febs,
        laydate = layui.laydate,
        layer = layui.layer,
        form = layui.form,
        fileUpload = layui.fileUpload,
        upload = layui.upload,
        tinymce = layui.tinymce,
        $view = $('#accidentAlerts-edit'),
        validate = layui.validate;
    let accidentAlertsFileList = [];

    fileUpload.render({
        elem:'#showFiles',
        url:ctx + 'accident/upload',
        type:'2',
        maxNum:5,
        isDetail: true,
        defaultData: accidentAlertsData && accidentAlertsData.accidentAlertsFileList ? accidentAlertsData.accidentAlertsFileList:[],
        done:function(res){
        }
        ,error: function(){
            layer.msg("服务器异常")
        }
    })

    form.verify(validate);
    form.render();

});